package com.endi.sap.controller;

import com.endi.sap.service.FormAndActionFactoryService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

@Slf4j
@RestController
public class FormAndActionController {

    @Autowired
    private FormAndActionFactoryService formAndActionFactoryService;

    @PostMapping("/formAanAction")
        public Map<String, Object> formAanAction(@RequestBody Map<String,Object> map) {
        formAndActionFactoryService.factory(map);
        return map;
    }

}
